import Vue from 'vue';
import Router from 'vue-router';
import adminIndex from '@modules/admin/index.vue';

import manageAdmin from '@modules/admin/manageAdmin.vue';
import manageTeacher from '@modules/admin/manageTeacher.vue';
import manageStudent from '@modules/admin/manageStudent.vue';


Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'adminIndex',
      component: adminIndex,
        children: [
            {
                path: '/manageAdmin',
                name: 'manageAdmin',
                component: manageAdmin
            },
            {
                path: '/manageTeacher',
                name: 'manageTeacher',
                component: manageTeacher
            },
            {
                path: '/manageStudent',
                name: 'manageStudent',
                component: manageStudent
            }
        ]
    }
  ]
})
